package com.ruoyi.cat.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 购物车信息对象 cat_cart
 * 
 * @author xin
 * @date 2025-09-16
 */
public class CatCart extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 购物车ID */
    private Long cartid;

    /** 商品ID */
    @Excel(name = "商品ID")
    private Long productId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 商品购买价格 */
    @Excel(name = "商品购买价格")
    private BigDecimal purchasePriceGoods;

    /** 商品数量 */
    @Excel(name = "商品数量")
    private Long count;

    /** 购物车状态（0未结算 1已结算 2失效） */
    @Excel(name = "购物车状态", readConverterExp = "0=未结算,1=已结算,2=失效")
    private String cartStatus;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    public void setCartid(Long cartid) 
    {
        this.cartid = cartid;
    }

    public Long getCartid() 
    {
        return cartid;
    }
    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setPurchasePriceGoods(BigDecimal purchasePriceGoods) 
    {
        this.purchasePriceGoods = purchasePriceGoods;
    }

    public BigDecimal getPurchasePriceGoods() 
    {
        return purchasePriceGoods;
    }
    public void setCount(Long count) 
    {
        this.count = count;
    }

    public Long getCount() 
    {
        return count;
    }
    public void setCartStatus(String cartStatus) 
    {
        this.cartStatus = cartStatus;
    }

    public String getCartStatus() 
    {
        return cartStatus;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("cartid", getCartid())
            .append("productId", getProductId())
            .append("userId", getUserId())
            .append("purchasePriceGoods", getPurchasePriceGoods())
            .append("count", getCount())
            .append("cartStatus", getCartStatus())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
